import 'package:qr_code_app/common/api/api_provider.dart';
import 'package:todo_flutter/todo_flutter.dart';

class PhoneLoginRequest extends ApiRequest<String> {
  PhoneLoginRequest(String phone, String code)
      : super({
          'phone_number': phone,
          'password': code,
        });

  @override
  RequestMethod get method => RequestMethod.postJson;

  @override
  String get url => 'login_or_register';
}
